Hybris UX Api icon

Hybris UX Api

(0 reviews)

TMF667 - Post document

This operation allows you to create a QR Code.

URL
http://[localhost]:[port]/ecom-ux/v1/{businessId}/document
URL PARAMS
nametypedescriptionrequired
businessIdString2 letter ISO 3166 country code (PA) identifying the business unit.Y
Headers
nametypedescriptionrequired
client-idStringThe client-id identifying the channel.Y
client-secretStringPassword associated with the client-id.Y
X-Correlation-IDStringIdentifier that correlates HTTP request between a client and server. Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.N
Data Model - Request
field nametypedescriptionrequired (mandatory-M, optional-O
nameStringname for the QR code image to saved in emarsysM
documentTypeStringType of the documentTypeO
characteristic[]ArrayM
characteristic[].valueTypeStringvaluetype for the characteristic fieldM
characteristic[].valueStringvalue for the characteristic fieldM
characteristic[].nameStringName for the characteristic fieldM
Data Model - Response
field nametypedescriptionrequired (mandatory-Y, optional-N, Not applicable- N/A)
idstringunique identifierN
namestringA string used to give a name to the document.N
documentTypestringName of the document typeN
statusstringA document status type (DocumentStatusType). The life cycle state of the document.N
characteristicarrayA list of characteristics (Characteristic [*]). Describes a given characteristic of an object or entity through a name/value pair.N
characteristic.namestringName of the characteristicN
characteristic.valueTypestringData type of the value of the characteristic.N
characteristic.valueanyThe value of the characteristic.N
attachmentarrayA list of attachment ref or values (AttachmentRefOrValue [*]). An attachment by value or by reference. An attachment complements the description of an element, for example a picture.N
attachment.idstringUnique identifier for this particular attachment.N
attachment.attachmentTypestringAttachment type such as picture.N
attachment.mimeTypestringAttachment mime type such as extension file for picture.N
attachment.namestringThe name of the attachment.N
attachment.sizeobjectThe size of the attachment.N
attachment.size.amountfloatNumeric value in a given unit.N
attachment.size.unitstringUnitsN
attachment.urlstringRemote reference to the content if web-addressable.N
characteristics - sub-resource
field namevalueTypedescriptionrequired(mandatory-Y, optional-N, Not applicable- N/A)examples
characteristic[].name=="folderId"integerCustomer address idY for generating QRcode URL
N/A for generating base64 format QRcode
{
"name": "folderId",
"valueType": "integer",
"value": TBD
}
characteristic[].name=="height"integerCustomer contact idY for generating QRcode URL
N/A for generating base64 format QRcode
{
"name": "height",
"valueType": "integer",
"value": 300
}
characteristic[].name=="width"integerbusiness unitY for generating QRcode URL
N/A for generating base64 format QRcode
{
"name": "width",
"valueType": "integer",
"value": 300
}
characteristic[].name=="activationCode"StringCustomer location idY for both{
"name": "activationCode",
"valueType": "integer",
"value": "LPA:1$sm-v4-099-a-gtm.pr.go-esim.com$0D7DBE1E622DD42E26A11DD09A04FE50"
}
Key considerations
-API will support two ways to generate QRcode image:
  1.generating the base64 content for the QRcode image.
   - name will be static value. we can pass "eSIM".
   - In the characteristic array, only pass the object with characteristic.name = "activationCode" as defined in the sub-resource data model. This value will be used to generate the QR code.
   - please refer to below sample examples from specification url:
       resquest - "PA_QRcode-Base64_request"in API specification
       response - "PA_QRcode-Base64_response" in API specification
  2.generating the URL of the QRcode via storing emarsys.
   - The name field should specify the name of the QR code image to be stored in Emarsys. It must include a valid image file extension (e.g., "PA_esim_123123.jpg").
   - In the characteristic array, include the following objects as defined in the sub-resource data model:
   - characteristic.name = "activationCode" – to generate the QR code content
   - characteristic.name = "height" – to define the image height
   - characteristic.name = "width" – to define the image width
   - characteristic.name = "folderId" – to indicate the folder name where the image should be stored in Emarsys
   -please refer to below sample examples from specification url:
      resquest - "PA_QRcode-URL_request"in API specification
      response - "PA_QRcode-URL_response" in API specification

Note: For sample examples please refer to this URL - Post Document


Reviews